<md-content class="page-content login_content" style="min-height:450px">
	<div layout="column" layout-align="center center" class="bg-theme login_bar">
		<!-- 有店铺图片 -->
		<div><img ng-if='storeInfo.merchant.logo' ng-src="{{storeInfo.merchant.logo||storeInfo.merchant.LOGO}}" alt=""/></div>
		<!-- 无店铺图片 -->
		<div class="noimg-name" ng-if="!storeInfo.merchant.logo"><span class="left-line"></span>{{storeInfo.merchant.name||storeInfo.merchant.NAME}}<span class="right-line"></span></div>
		<div class="light">会员登录</div>
	</div>
	<md-content class="md-padding" layou="column">
		<form name="loginForm" ng-submit="formSubmit()">
			<input type="submit" style="display: none"/>
			<md-input-container ng-if="!isSendCode">
				<label>会员手机号码</label>
				<input type="tel" name="mobile" auto-focus-input='' required ng-model="sendData.mobile"/>
			</md-input-container>
			<md-input-container ng-if="isSendCode">
				<label>请输入收到的动态密码</label>
				<input class="login_btn" auto-focus-input='' name="code" type="number" max-length="6" ng-model="sendData.code" flex/>
			</md-input-container>
		</form>
		<div layout="row" style="width: 100%;">
			<md-button class="md-raised btn-l" id='sendMemberBindCode' ng-click="sendCode(sendData.mobile)" ng-disabled="smsBlocked" flex style="float: left"
			           ng-style="{'width':(isSendCode?'45%':'95%')}"><span class="s-text"><span ng-if="!smsBlocked">发送动态登录密码</span><span
					ng-if="smsBlocked">{{againTime}}秒后可再次发送</span></span></md-button>
			<md-button class="md-raised md-primary btn-l" flex ng-show="isSendCode" ng-click="login(sendData.mobile,sendData.code)" style="width:45%;float: left;">登录</md-button>
		</div>
		<div class="" ng-show="!isSendCode" style="opacity:0.6;font-size:0.8em;margin-top:30px">如果您在店铺办理会员时未提供手机号码，请联系商家设置。
		</div>
		<div class="" ng-show="isSendCode" style="opacity:0.6;margin-top:30px">
			<div class="btn-link s-text padding-tb" layout layout-align="center center" ng-click="isSendCode=false">
				<icon class="icon-chevron-left"></icon>
				&nbsp;
				<div flex>当前手机号“<b>{{sendData.mobile}}</b>”, 返回使用其他手机号。</div>
			</div>
		</div>
		</div>
	</md-content>
	<md-footer layout layout-align="center" class="padding">
		<md-button ui-sref="index" class="padding">
			返回店铺主页
		</md-button>
		<md-button ng-if="isHasRegister" ui-sref="member.register" class="padding">
			会员注册
		</md-button>
	</md-footer>
</md-content>
